from django.urls import path, re_path

from apps.verifications import views

app_name = 'verifications'

urlpatterns = [
    # 图形验证码生成
    re_path('image_captcha/(?P<uuid>[\w-]+)/', views.ImageCaptchaView.as_view()),

    #  图形验证码验证
    re_path('validate_captcha/(?P<uuid>[\w-]+)/(?P<code>[\w]+)/', views.ValidatorImageCodeView.as_view()),

    # 短信验证码
    re_path('sms_codes/(?P<mobile>1[3-9]\d{9})', views.SMSCodeView.as_view()),
]
